package march.test_3_29;

import java.util.Scanner;

public class TestMain2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            double n = scanner.nextDouble();
            double count = 0.0;
            for (int i = 2; i <= n; i++) {
                if(i % 2 == 0) {
                    count += (1.0 / chen(i));
                } else {
                    count -= (1.0 / chen(i));
                }
            }
            count *= 100;
            System.out.printf("%.2f",count);
            System.out.println("%");
        }
    }
    public static double chen(double a) {
        double result = 1;
        for (int i = 2; i <= a; i++) {
            result *= i;
        }
        return result;
    }
}
